package org.zoomdev.zoom.dao.entities;


import org.zoomdev.zoom.dao.annotations.AutoGenerate;
import org.zoomdev.zoom.dao.annotations.Column;
import org.zoomdev.zoom.dao.annotations.Table;
import org.zoomdev.zoom.dao.impl.TestDatabase;

import java.util.Date;
import java.util.List;

@Table("shp_product")
public class Product {


    @AutoGenerate
    Integer id;
    /// 表示不想用name，而是用title,这里可以写name,也可以写pro_name
    @Column("name")
    String title;
    String thumb;
    Double price;
    List<TestDatabase.ProductInfo> info;
    byte[] img;
    int count;
    int tpId;
    Date createAt;
    private ProductState state;

    public List<TestDatabase.ProductInfo> getInfo() {
        return info;
    }

    public void setInfo(List<TestDatabase.ProductInfo> info) {
        this.info = info;
    }

    public byte[] getImg() {
        return img;
    }

    public void setImg(byte[] img) {
        this.img = img;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getThumb() {
        return thumb;
    }

    public void setThumb(String thumb) {
        this.thumb = thumb;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }


    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public int getTpId() {
        return tpId;
    }

    public void setTpId(int tpId) {
        this.tpId = tpId;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public ProductState getState() {
        return state;
    }

    public void setState(ProductState state) {
        this.state = state;
    }
}